package com.zhijian.medical.entity.vo.request;

import com.zhijian.medical.entity.po.Device;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author HCG
 * @version 1.0
 * @date 2023-07-30
 */
@Data
@Api(tags = "设备新增or修改类")
public class DeviceSaveOrUpdateVo extends Device implements Serializable {

    private static final long serialVersionUID = 2162186885536573340L;

    /**
     * 设备校准/检定/检测的指标+参数数组
     */
    @ApiModelProperty("设备校准/检定/检测的指标+参数数组")
    private List<SupervisionContentVo> supervisionContentList;

    @Data
    @Api(tags = "设备新增or修改类，校准/检定/检测内容类")
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class SupervisionContentVo implements Serializable {

        private static final long serialVersionUID = -7052681258864683176L;

        /**
         * 校准/检定/检测指标
         */
        @ApiModelProperty("校准/检定/检测指标")
        private String zb;

        /**
         * 校准/检定/检测参数
         */
        @ApiModelProperty("校准/检定/检测参数")
        private String param;
    }
}
